package com.sdleyou.treepro.common.model.dao;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

@Data
@Document(collection = "{RRZS}_collection_login_time")
public class LoginTimeDO {

    /**
     * 文档主键
     */
    @Id
    @Field("_id")
    private String objId;

    /**
     * 用户ID
     */
    @Field("user_id")
    @Indexed
    private String userId;

    /**
     * 登陆时间
     */
    @Field("sign_in_list")
    private List<SignIn> signInList;
}
